package com.mrd.gtimpframe.service.impl;

import com.mrd.gtimpframe.entity.QPCompany;
import com.mrd.gtimpframe.repository.QPCompanyMapper;
import com.mrd.gtimpframe.service.QPCompanyService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by dusy on 2017/9/25.
 */
@Service
public class QPCompanyServiceImpl implements QPCompanyService {
    @Autowired
    private QPCompanyMapper qpCompanyMapper;

    @Override
    public int deleteByPrimaryKey(String companyCode) {
        return qpCompanyMapper.deleteByPrimaryKey(companyCode);
    }

    @Override
    public int insert(QPCompany record) {
        return qpCompanyMapper.insert(record);
    }

    @Override
    public int insertSelective(QPCompany record) {
        return qpCompanyMapper.insertSelective(record);
    }

    @Override
    public QPCompany selectByPrimaryKey(String companyCode) {
        return qpCompanyMapper.selectByPrimaryKey(companyCode);
    }

    @Override
    public int updateByPrimaryKeySelective(QPCompany record) {
        return qpCompanyMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(QPCompany record) {
        return qpCompanyMapper.updateByPrimaryKey(record);
    }
}
